package com.hoas.quickstart.threads.chapter03.chapter03_1_4_01;

public class Run {

    public static void main(String[] args) {
        System.out.println("wait()方法被执行后锁自动释放");
        Object lock = new Object();
        ThreadA a = new ThreadA( lock );
        a.start();
        ThreadB b = new ThreadB( lock );
        b.start();
    }

}
